package com.yeyi.ytest;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class ScheduledTest {
	private static final Logger log = LoggerFactory.getLogger(ScheduledTest.class);

    @Scheduled(cron="${ScheduledTest.cron}")
    public void process() {
        log.info("ScheduledTest::process::start >------->");
        try {
        } catch (Exception e) {
            log.error("ScheduledTest::process::fail", e);
        }
        log.info("ScheduledTest::process::end <-------<");
    }
}
